package meta.api.web.value.businesscontrol;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import meta.api.web.value.business.ValueMngService;

@Transactional
@Component
public class ValueMngBusiCtrl {

    @Autowired
    private ValueMngService valueMngService;

    @Transactional(readOnly = true)
    public int getTotal(String type, List<String> keys) {
        return valueMngService.getTotal(type, keys);
    }

    @Transactional(readOnly = true)
    public List<Object> getList(String type, List<String> keys,
            Integer current, Integer pageSize) {
        return valueMngService.getList(type, keys, current, pageSize);
    }

    @Transactional(readOnly = true)
    public Object getValue(String type, String key) {
        return valueMngService.getValue(type, key);
    }
}
